package com.hichat.mobile.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.hichat.common.pojo.Friend;
import com.hichat.common.pojo.FriendExample;
import com.hichat.common.util.QueryData;
import com.hichat.common.util.ReturnResult;

@FeignClient(value = "hichat-provider", contextId = "friend-service",fallback = HystrixFriendHandler.class)
public interface FriendService {

    @RequestMapping(value = "/friend/saveFriend",method = RequestMethod.POST)
    ReturnResult insertFriend(@RequestBody Friend friend);
    
    
    @RequestMapping("/friend/getFriendList")
    ReturnResult getFriendList(@RequestBody QueryData<FriendExample> queryData);
}
